INCLUDES=-I. -I../SFont $(shell sdl-config --cflags) -I../
LIBS=$(LDFLAGS) -L../SDL_Layer -lSDL_image -lSDL_layer $(shell sdl-config --libs)
CFLAGS+= -ggdb $(INCLUDES) -O3 -ffast-math
COMPILER=$(shell which g++)

all: editor

editor: LevelEditor.o Button.o ../Gfx.o ../ResourceMgr.o ../SFont.o ../GfxEffects.o ../Timer.o
	$(COMPILER) -o bnbeditor $(LIBS) LevelEditor.o Button.o ../Gfx.o ../ResourceMgr.o ../SFont.o ../GfxEffects.o ../Timer.o

.cc.o: 
	$(COMPILER) $(CFLAGS) -c $<

clean:
	\rm -f *.o bnbeditor *~* *#*

